  @extends('blog.master')

  @section('content')

  <a class="btn btn-primary" href="/blog/add">添加文章</a>



 <div class="panel panel-default">
   @foreach($data as $vv)
  <div class="panel-body">
    <span>{{$vv->name}}</span>

    <a href="/blog/show/{{$vv->id}}" class="btn btn-info">阅读</a>
    <a href="/blog/Xgqq/{{$vv->id}}" class="btn btn-info">修改</a>
      <form action="" method="post" style="display: inline-block;">
          {{ csrf_field() }}
          <a href="/blog/del/{{$vv->id}}" class="btn btn-info">删除</a>
        </form>
    </div>
    @endforeach
    </div>



     
  <ul class="pagination">
  <!-- <li class="disabled"><span>«</span></li> 
  <li class="active"><span>1</span></li>
  <li><a href="#">2</a></li>
  <li><a href="#" rel="next">»</a></li> -->
  {!! $data->render() !!}
  </ul>

  @endsection